/**
 * 
 */
package br.com.mb;

import java.io.Serializable;
import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.icefaces.ace.event.DateSelectEvent;

/**
 * @author Joelson
 * 
 */

@ManagedBean(name = "yourBean")
@ViewScoped
public class YourBean implements Serializable {

	private static final long serialVersionUID = -216047947491056318L;

	private Date selectDateProperty = new Date(System.currentTimeMillis());

	public Date getSelectDateProperty() {
		return selectDateProperty;
	}

	public void setSelectDateProperty(Date selectDateProperty) {
		this.selectDateProperty = selectDateProperty;
	}

	public void dateSelectListener(DateSelectEvent event) {
		setSelectDateProperty(event.getDate());
		
	}

}